package x.y.z.properties;//package x.y.z.properties;
//
import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;


//@Configuration
@ConfigurationProperties(prefix="app1")
/**
 * YAML files cannot be loaded by using the @PropertySource annotation. So, in the case that you need to load values that way, you need to use a properties file.
 *
 * Using the multi YAML document syntax in profile-specific YAML files can lead to unexpected behavior.
 * 不要用PropertySource加载自定义的配置
 */
@PropertySource("test.yml")
@Component
@Getter
@Setter
public class Config3 {
    private String name;
    private String title;
    private String desc;
}


